<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page import="universal.schema.model.Filters"%>
<html>
<body>

<br/>
<br/>
<br/>
<br/>
	<div class="alert alert-block alert-success">
		<h4 class="alert-heading">Correct!!</h4>
		<br /> The following filters are valid: <br />
		<table class="table table-bordered">
			<tr>
				<th>Columns</th>
				<th>Operators</th>
				<th>Condition_Value</th>
				<th>Connector</th>
			</tr>
			<tr></tr>
			<s:iterator value="conditions">
				<tr>

					<td><s:property value="columns" /></td>

					<td><s:property value="operators" /></td>

					<td><s:property value="filtervalue" /></td>

					<s:if test="%{connectors == '-1'}">
						<td></td>
					</s:if>
					<s:else>
						<td><s:property value="connectors" /></td>
					</s:else>

				</tr>
			</s:iterator>
		</table>


	</div>
	<br />
	<br />
	<div class="alert alert-block alert-error">

		<h4 class="alert-heading">Incorrect!</h4>
		<br /> The following filters are removed as they were invalid: <br />
		<table class="table table-bordered">
			<tr>
				<th>Columns</th>
				<th>Operators</th>
				<th>Condition_Value</th>
				<th>Connector</th>
			</tr>
			<tr></tr>
			<s:iterator value="invalid">
				<tr>
					<s:if test="%{columns == '-1'}">
						<td>_________</td>
					</s:if>
					<s:else>
						<td><s:property value="columns" /></td>
					</s:else>
					<s:if test="%{operators == '-1'}">
						<td>_________</td>
					</s:if>
					<s:else>
						<td><s:property value="operators" /></td>
					</s:else>
					<s:if test="%{filtervalue == ''}">
						<td>_________</td>
					</s:if>
					<s:else>
						<td><s:property value="filtervalue" /></td>
					</s:else>
					<s:if test="%{connectors == '-1'}">
						<td>_________</td>
					</s:if>
					<s:else>
						<td><s:property value="connectors" /></td>
					</s:else>
				</tr>
			</s:iterator>
		</table>
	</div>
	<br />

	<h4>How do you want to proceed?</h4>

	<br />
	<br />
	<a href="RestartWork.action" class="btn btn-primary">Start Over</a>
	<a href="ProceedtoQuery.action" class="btn btn-primary">Go to
		Step-4</a>
</body>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="resources/js/bootstrap.min.js"></script>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
</html>